﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Medianamik.Core.Interfaces;

namespace Medianamik.Core.Querying
{
    public class SimpleNodeEqualityComparer<T> : EqualityComparer<T> where T:Node,new() 
    {
        public override bool Equals(T x, T y)
        {
            return x.ID.Equals(y.ID);
        }
        public override int GetHashCode(T obj)
        {
            return obj.ID.GetHashCode();
        }
    }
}
